//纯方法进行状态的描述
const loginTest = (state = {isLogin:true},action)=>{
    switch(action.type){
        case 'loginY':
            return Object.assign({},state,{
                isLogin:true
            });
            break;
        case 'loginN':
            return Object.assign({},state,{
                isLogin:false
            });
        default:return state;
    }
};
export default loginTest;